<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/wm.tld" prefix="wm"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>沈阳外卖网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="在卓越大厦附近叫外卖，查看卓越大厦附近的餐厅、美食信息" />
<!-- Bootstrap -->
<link href="publicui/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<!--[if lt IE 9]>
  <script src="public/js/html5shiv.js"></script>
<![endif]-->
<!-- application  -->
<link href="css/head.css" rel="stylesheet" />
<link href="css/foot.css" rel="stylesheet" />
<link href="css/restaurant_manager.css" rel="stylesheet" />
</head>
<body >

<!-----nav-->
<s:action name="shopTop" executeResult="true"></s:action>
<!---/nav   --> 

<!---/body   -->
<div class="content" > 
<!--   content  -->

	<div class="wash-paper clearfix" id="profile">
		<s:include value="/WEB-INF/shopkeeper/menu.jsp" />
		<div class="main-content">
            <div class="content-header">
              <h2>  菜单管理
              </h2>
              
            </div>
        
            <div class="content-inner">
              
            
              <div class="order-list">
              <!--    循环开始   -->
             	 <span id="ref_time" ref_time='1364954294000'></span>
                     <div class="order-block">
            
                     <div class="order-header">
                      
            
                      
                      <div class="line-two">
                      <form action="/shopkeeper_restaurant_menu.action" method="get" id="restaurant_menu" >
                        <table class="table table-condensed">
                          <tbody>
                            <tr>
                              <td class="col1"><span class="item-name">菜名:</span><s:textfield id="menuName" name="menuName"/></td>
                              <td class="col2"><span class="item-name">价格:</span><s:textfield id="price" name="price"/></td>
                              
                            </tr>
                            <tr>
                             <td class="col1"><span class="item-name">是否显示:</span>
                             	<s:select list="isShowList" name="isShow" id="isShow" listKey="key" listValue="value"></s:select>
                             </td>
                              <td class="col2"><span class="item-name"></span><button tabindex="5" type="submit" class="btn btn-warning"
															id="">
															搜索
														</button></td>
                             
                            </tr>
                            
                          </tbody>
                        </table>
                        </form>
                      </div>
                    </div>
                    
                    <div class="order-table-wrapper">
                                                  <table class="order-table table table-striped">
                            <thead>
                              <tr>
                                <th class="col-name">菜名</th>
                              
                                <th class="col-price">单价</th>
                                <th class="col-quantity">是否显示</th>
                                <th class="col-sub-total">操作</th>
                              </tr>
                            </thead>
            
                            <tbody>
<s:iterator id="m" value="%{pageList.objectList}" status="st" >    
<s:url action="shopkeeper_restaurant_menu?action=del&id=${m.id}" id="restaurantdelurl" />
<s:url action="shopkeeper_restaurant_menu?action=update&id=${m.id}" id="restaurantupdateurl" />                        
                                   <tr>
                                    <td class="col-name">
                                      <span><s:property value="#m.menuName"/></span>
                                    </td>
                                    
                                    <td class="col-price">￥<s:property value="#m.formatPrice"/></td>
                                    <td class="col-quantity">
                                    <s:if test="#m.isShow==0">
							      	隐藏
							      </s:if>
							      <s:if test="#m.isShow==1">
							      	显示
							      </s:if>
                                    </td>
                                    <td class="col-sub-total">
										<a href="${restaurantupdateurl}" class="btn btn-warning">修改</a>
														</td>
                                  </tr>
</s:iterator>
                                   
                                  
                                 </tbody>
                          </table>
                        
                             <table class="order-table table table-striped">
                            <thead>
                              <tr>
                                <th class="col-name"  ><wm:pages value="%{pageList.pages}"/></th>
                               
                              </tr>
                            </thead>
                            <tbody>
                                              </tbody>
                          </table>
                        
                    </div>
            
                  </div>
               <!--    循环结束   -->
               
                  
                    
              </div>
            
              </div>
            
            </div>
        </div>

	
<!--   /content  -->
    <s:action name="foot" executeResult="true"></s:action>
</div>
<!--  alert div start---->
<div id="copy_dlg_restaurant"  class="restaurant-hover-dlg right hide" >
  <div class="wrapper dark_shadow">
    <div class="callout_tip"></div>
    <div class="detail"> </div>
  </div>
</div>
<!--  alert div  end ---->

<!---/body   --> 


<script src="publicui/js/jquery-1.8.3.js"></script> 
<script src="publicui/jquery-ui/js/jquery-ui-1.9.2.custom.js"></script> 
<script src="publicui/bootstrap/js/bootstrap.min.js"></script> 
<script src="js/head.js"></script> 


</body> 
</html>
<!-- haha! everyone is a frontier -->
